<%-- 
    Document   : indexcategorylist
    Created on : 07 17, 12, 3:27:18 PM
    Author     : Patrick
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.Iterator"%>
<%@page import="Factory.Tables.Category"%>
<%@page import="java.util.ArrayList"%>






    
    <font id="categorylist" face="Arial" color="white" size="2px">
    
    <dl >
    <% 
        ArrayList<Category> result = (ArrayList<Category>)session.getAttribute("categories");
        Iterator<Category> iter;
        Category category;
        int i;
        if(result!=null){
            iter = result.iterator(); 
            i=0;
            while(iter.hasNext()){
                category = iter.next();
                
                                           
                
                %>
                <a class="categorylist"  href="categorymovies.jsp?name=<%=category.getCategoryName()%>" onmouseover="javascript:indexcategorylistover(<%=category.getCategoryID()%>)" onmouseout="javascript:indexcategorylistout(<%=category.getCategoryID()%>)" ><dt id="indexlist<%=category.getCategoryID()%>"><font size="3px" >&#8853;</font> <%=category.getCategoryName()%> </dt></a>
                <%

                
                i++;
            }
        }
        
        %>          
    
			
    </dl>

    </font>



